<?php

namespace App\Channels;


use App\Services\SmsService;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Log;

class SmsChannel
{

    public function send($notifiable, Notification $notification)
    {
        // todo 这里需要修改成支持发送不同模板的短信
        // Log::info('------ 发送短信 ------' . json_encode($notifiable));
        // Log::info('====== 发送短信 ====== Notification 对象：' . json_encode($notification));
        $res = $notification->toSms($notifiable);
        // SmsService::sendCode($notifiable['phone'], 123456, 'AUDIT');
    }
}
